
<ion-header>

  <ion-navbar>
    <ion-title>转账</ion-title>
    <ion-buttons end><button ion-button (click)="gotoPageAction()">转账记录</button></ion-buttons>
  </ion-navbar>

</ion-header>


<ion-content>

  <div class="box">
    <ion-list>
      <button ion-item>
        <ion-label>转出</ion-label>
        <ion-multi-picker item-content
                          cancelText="取消"
                          doneText="完成"
                          placeholder="选择转出平台"
                          [(ngModel)]="outPlatformModel"
                          (ionChange)="onPickerChange($event,1)"
                          [multiPickerColumns]="platforms">
        </ion-multi-picker>
      </button>
      <button ion-item>
        <ion-label>转入</ion-label>
        <ion-multi-picker item-content
                          cancelText="取消"
                          doneText="完成"
                          placeholder="选择转入平台"
                          [(ngModel)]="inPlatformModel"
                          (ionChange)="onPickerChange($event,2)"
                          [multiPickerColumns]="platforms">

        </ion-multi-picker>
      </button>
      <ion-item>
        <div class="on-item">
          <p class="key">金额</p>
          <input type="number" placeholder="请输入金额" [(ngModel)]="money">
        </div>
      </ion-item>
    </ion-list>
  </div>
  <div class="buttons" style="margin-top: 10px;">
    <button ion-button (click)="onTransferAction()">确认转账</button>
    <button ion-button>一键回收</button>
  </div>
  <div class="flex gameHeader">
    <div class="line"></div>
    <div class="gameWallet">游戏钱包</div>
    <div class="line"></div>
  </div>
  <div class="games flex">
    <div class="item" *ngFor="let item of user.platformsCash">
      <div class="block">
        <p class="name">{{item.name}}</p>
        <p class="money">{{item.money.toFixed(2)}}</p>
      </div>
    </div>
  </div>


</ion-content>
